home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Communication / NewsBase / Source / common.subproj / data_types.h next >
Text File  |  1993-01-12  |  3KB  |  111 lines

  1. /*  data_types.h
  2.  *    defines a data type which is used in DataBase
  3.  *
  4.  */
  5.  
  6. #define        NEWSBASE        "NewsBase"
  7. #define        MMEDITOR        "MMEdit"
  8.  
  9. #define        DATATYPENAME_MAX    30    /* max. len. of dataTypeName */
  10.  
  11. /* key name for groupListDB */
  12. #define        GROUPLIST_DB        "groupListDB"
  13. #define        GROUPNAME        "Newsgroups"
  14. #define        LAST            "last"
  15. #define        FIRST            "first"
  16. #define        CANPOST            "canPost"
  17. #define        ESTIMATENUM        "estNum"
  18. #define        ART_NUM_SET        "article_num_set"
  19. #define        SUBSCRIBE        "subscribe"
  20. #define        NEWNEWSGROUP        "newNewsGroup"
  21.  
  22. #define        MESSAGE_ID        "Message-ID"
  23. #define        REFERENCES        "References"
  24. #define        SUBJECT            "Subject"
  25. #define        DISTRIBUTION        "Distribution"
  26. #define        FROM            "From"
  27. #define        REPLY_TO        "Reply-To"
  28. #define        FOLLOWUP_TO        "Followup-To"
  29. #define        KEYWORDS        "Keywords"
  30. #define        DATE            "Date"
  31. #define        PATH            "Path"
  32. #define        LINES            "Lines"
  33.  
  34. /* key word for article body of plain text  */
  35. #define        PLAINTEXT        "plainText"
  36.  
  37. /* key word for an infoD, which is in articleDB and has information for each
  38.  * articleItem
  39.  */
  40. #define        HEADER_INFO        "header.tbl"
  41. #define        INDEX_RTF        "index.rtf"
  42. #define     GROUPINFO        "groupInfo.tbl"
  43. #define        ARTICLE_NUM        "articleNum"
  44. #define        SENDER            "Sender"
  45. #define        ORGANIZATION        "Organization"
  46.  
  47. /* for nntp */
  48. #define        LINE_CHR_MAX        512
  49.  
  50. // defines for Preferences
  51. #define OWNER "NewsBase"
  52. #define AUTOCONNECTFLAG "AutoConnectFlag"
  53. #define FONT "Font"
  54. #define EDITOR_SIZE "EditorSize"
  55. #define EDITOR_LOCATION "EditorLocation"
  56. #define EDITOR_VIEW_SIZES "EditorViewSizes"
  57. #define DISKBROWSER_FRAME "DiskBrowserFrame"
  58. #define NNTPBROWSER_FRAME "NNTPBrowserFrame"
  59. #define NNTPSERVER "NNTPServer"
  60. #define KANJICODE "KanjiCode"
  61. #define JFIF_OR_TIFF "JFIForTIFF"
  62. #define JPEGCOMPRESSIONFACTOR "JPEGCompressionFactor"
  63. #define DISTRIBUTION "Distribution"
  64. #define SAVEDIRECTORY "SaveDirectory"
  65. #define NEWSRCFILE "NewsrcFile"
  66. #define FROM "From"
  67. #define REPLYTO "ReplyTo"
  68. #define ARTICLEBROWSERMODE "ArticleBrowserMode"        /* browser, list */
  69. #define NEWSGROUPBROWSERMODE "NewsGroupBrowserMode"    /* browser, list */
  70. #define PRINT_INFO_SCALING_FACTOR "PrintInfoScalingFactor"
  71.  
  72. #define ARTICLESELECT "ArticleSelect"        /* SingleClick, DoubleClick */
  73. #define SINGLECLICK "SingleClick"
  74. #define DOUBLECLICK "DoubleClick"
  75.  
  76. #define VIEWERBACKGROUND "ViewerBackground"
  77. #define MULTIPLEVIEWERFLAG "MultipleViewerFlag"
  78. #define NUM_ARTTOGET "ArtNumDef"
  79.  
  80. #define    ARTICLESIZEMARK    "ArticleSizeMark"
  81. #define    RECONNECTTIME    "ReconnectTime"
  82.  
  83. #define NEWS_FILE_EXTENSION "news"
  84. #define MM_FILE_EXTENSION "mmd"
  85. #define RTF_FILE_EXTENSION "rtf"
  86. #define MIME_FILE_EXTENSION "mime"
  87. #define NEWSBASE_PBOARD_TYPE "NewsBase RTF Format"
  88. #define RTF_CONTROL_WORD "MMtiff"
  89.  
  90. /* multimedia data types */
  91. #define     MMRTF    "rtf"
  92. #define        MMTIFF    "tiff"
  93. #define        MMSND    "snd"
  94. #define        MMMTIF    "mtif"
  95. #define        MMTBL    "tbl"
  96. #define        MMVID    "vid"
  97.  
  98. #define EDITOR_APP_NAME MMEDITOR
  99. #define LoStr(key)      doLocalString(NULL,key,NULL)
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.